See also: #582439.
Closes: #679986
LDFLAGS = `dpkg-buildflags --get LDFLAGS`
CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
-LDFLAGS += -g
-
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O2
+ ifneq (,$(filter $(DEB_HOST_ARCH),ia64))
+ # Fix a problem with newer versions of gcc on ia64.
+ # See bugs #582439 and #679986.
+ CFLAGS += -O1
+ endif # eq ia64
endif
joblimit := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))